@extends('layout.default')

@section('layout.content')

  <div class="row">
    <div class="col-xs-12">
      <form method="get" action="{{route('bank.user.sign')}}" class="form-horizontal">
        <input type="hidden" name="account" value="{{$account}}"/>
        <input type="hidden" name="isbn" value="{{$isbn}}"/>
        <input type="hidden" name="aid" value="{{$activity->id}}"/>
        <div class="space-12"></div>
        <div class="col-xs-12 col-md-6 col-md-offset-3">
          <div class="form-group">
            <div class="input-group">
              <input type="text" class="form-control" id="query" name="query" maxlength="13" placeholder="帐号/姓名/ISBN"
                     style="padding:0 10px;height:45px;font-size:18px;font-weight: bold;" autocomplete="off"/>
              <span class="input-group-btn">
                <button class="btn btn-primary" id="btn-sign" type="submit" style="height:45px;font-size:14px;">
                  <i class="ace-icon fa fa-search"></i>
                  信息查询
                </button>            
              </span>
            </div>
          </div>
        </div>
      </form>
    </div>
  </div><!-- /.row -->

  @if (isset($users) && count($users) > 0)
    @include('bank.user.query')
  @endif

  @if (isset($borrows) && count($borrows) > 0)
    @include('bank.user.borrow')
  @endif


@stop

@section('javascript')
  <script src="/assets/js/user-func.js"></script>
  <script type="text/javascript">
      $(function () {
          $('#query').focus();
      });
  </script>
@stop